package cn.jasonone.service;

import java.util.List;

import cn.jasonone.bean.SysRole;

public interface SysRoleService {
	public boolean save(SysRole sysRole,int[] resourceIds);

	public boolean deleteByIds(int... ids);

	public List<SysRole> findAll(SysRole sysRole);

	public List<SysRole> findByUserId(int userId);

	public SysRole findById(int id);

	public boolean bindUser(int userId, int[] roleIds);

	public boolean isAdmin(int userId);

}
